package com.wgts.wgts.mvp.model.imp;

import com.wgts.wgts.mvp.model.ISearchResultFragmentModel;
import com.wgts.wgts.netmodle.HttpResultSubscriber;
import com.wgts.wgts.netmodle.NetService;
import com.wgts.wgts.netmodle.req.SearchShopListRequest;
import com.wgts.wgts.netmodle.req.SearchStoreListRequset;
import com.wgts.wgts.netmodle.resp.ScreenEntity;
import com.wgts.wgts.netmodle.resp.SearchShopResultEntity;
import com.wgts.wgts.netmodle.resp.SearchStoreResultEntity;

/*
 *
 *
 *   data:2018/9/2715:18
 *
 */public class SearchResultFragmentModel implements ISearchResultFragmentModel {
     private NetService netService;

    public SearchResultFragmentModel(NetService netService) {
        this.netService = netService;
    }

    @Override
    public void getShopList(SearchShopListRequest request, HttpResultSubscriber<SearchShopResultEntity> subscriber) {
        netService.shopList(request, subscriber);
    }

    @Override
    public void getStoreList(SearchStoreListRequset requset, HttpResultSubscriber<SearchStoreResultEntity> subscriber) {
        netService.storeList(requset, subscriber);
    }

    @Override
    public void getScreen(Integer typeId, HttpResultSubscriber<ScreenEntity> subscriber) {
        netService.screen(typeId, subscriber);
    }
}
